package com.sjd.farm.domain.dto.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * WxFarmOrderCreate
 *
 * @author seer
 * @version 1.0
 * @date 2022/1/28 14:43
 */
@Data
public class WxFarmOrderCreateResponseDTO {

    /**
     * id
     */
    private Long id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 订单状态
     */
    private Integer orderStatus;

    /**
     * 订单状态标签
     */
    private String orderStatusLabel;

    /**
     * 订单金额
     */
    private BigDecimal orderAmount;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime orderTime;

    /**
     * 折扣金额
     */
    private BigDecimal discountAmount;

    /**
     * 支付截止时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime paymentDeadline;

    /**
     * 应付金额
     */
    private BigDecimal payableAmount;

    /**
     * 商品ID
     */
    private Long goodsId;

    /**
     * 商品数量
     */
    private BigDecimal goodsQuantity;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品图片
     */
    private String goodsPicture;

    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;
}
